package com.letv.core.bean;

import java.util.ArrayList;

import com.letv.core.bean.LiveBookProgramList.LiveBookProgram;

public class LiveBookProgramList extends ArrayList<LiveBookProgram> implements LetvBaseBean{
	
	private static final long serialVersionUID = -1967467979466136155L;
	
	public static final String BOOK_STATE_OPEN = "1";
	public static final String BOOK_STATE_CLOSE = "2";
	
	private boolean isBookOpen = false;
	
	public boolean isBookOpen() {
		return isBookOpen;
	}

	public void setBookOpen(boolean isBookOpen) {
		this.isBookOpen = isBookOpen;
	}

	/**
	 * 预定状态,1预定打开，2预定关闭
	 */
	private String bookliveStatus = null;

	public String getBookliveStatus() {
		return bookliveStatus;
	}

	public void setBookliveStatus(String bookliveStatus) {
		this.bookliveStatus = bookliveStatus;
		
		setBookOpen(BOOK_STATE_OPEN.equals(bookliveStatus));
	}

	public static class LiveBookProgram implements LetvBaseBean{
		/**
		 * 直播频道名称
		 */
		private String channelName = null;
		
		/**
		 * 直播节目名称
		 */
		private String programName = null;
		
		/**
		 * 直播节目开播时间
		 */
		private String play_time = null;
		
		/**
		 * 直播频道编码
		 */
		private String code = null;

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		private String id = null;

		public String getChannelName() {
			return channelName;
		}
	
		public void setChannelName(String channelName) {
			this.channelName = channelName;
		}
	
		public String getProgramName() {
			return programName;
		}
	
		public void setProgramName(String programName) {
			this.programName = programName;
		}
	
		public String getPlay_time() {
			return play_time;
		}
	
		public void setPlay_time(String play_time) {
			this.play_time = play_time;
		}
	
		public String getCode() {
			return code;
		}
	
		public void setCode(String code) {
			this.code = code;
		}
	
		@Override
		public String toString() {
			return "LiveBookProgram [channelName=" + channelName + ", programName="
					+ programName + ", play_time=" + play_time + ", code=" + code + " , id = " + id
					+ "]";
		}
	}

}
